<?php
namespace Index\Controller;
use Think\Controller;
class  EmptyController extends Controller {
	/*
	* QQ:381943134
	* 
	*保持js css img不缓存
	*/
	public function __construct()
	{
		parent::__construct();
		

	    $this->src_version=date('YmdHis',time());	
		
		$this->c_a=CONTROLLER_NAME.'-'.ACTION_NAME;
	 
		$this->web=$this->get_cache('website','web');	
        
		 
	}
	// public function _empty()
	// {       
    //  	header("Content-type:text/html; charset=utf-8");
	// 	exit('<div style="color:green; font-weight:bold; margin:60px auto; text-align:center; font-size:48px;">做网站+微信开发 找 QQ:381943134</div>');
	// }
	
	
	public function get_cache($tbl_name,$var_name,$is_select=0){
		
		$var_name_arr=$var_name.'_arr';
		
		$$var_name_arr=S($var_name);
		
			
		if(empty($$var_name_arr)){
			
		  $$var_name_arr=intval($is_select)>0?M($tbl_name)->order('sort asc')->select():M($tbl_name)->find();	
			
		  S($var_name,$$var_name_arr,600);
		   	
		}
		
		return S($var_name);
	}
	
	
}